import React from 'react';
import { Typography as AntdTypography } from 'antd';
import type { TypographyProps as AntdTypographyProps } from 'antd';
import { createStyles } from 'antd-style';

export type { TypographyProps } from 'antd';

const useStyles = createStyles(({ token, css }) => ({
  typography: css`
    color: ${token.colorText};
    font-family: ${token.fontFamily};
  `,
}));

// 直接使用 AntdTypography 避免类型导出问题
const Typography: typeof AntdTypography = AntdTypography;

export { Typography };
export default Typography;

